import 'package:boss/textStyle/text_style.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class LRFTitle extends StatelessWidget {
  final String title;
  final Widget subTitle;
  final double marginTop;

  const LRFTitle(
    this.title, {
    Key key,
    this.marginTop,
    this.subTitle,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(
        left: 49.w,
        top: 50.w,
      ),
      alignment: Alignment.centerLeft,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Text(
            title,
            style: TextStyleConstant().normal_1_50,
          ),
          if (subTitle != null) subTitle
        ],
      ),
    );
  }
}
